home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware Grab Bag
/
Shareware Grab Bag.iso
/
090
/
cmln1085.arc
/
P5.PAS
< prev
next >
Wrap
Pascal/Delphi Source File
|
1986-02-27
|
2KB
|
42 lines
program p5; {color index array tester}
{This is an interesting program! The DEC Rainbow documentation
indicates that the cellarray feature is not implemented in the
currently distributed drivers. However, it seems to work nicely
using the medium and high resolution color monitor drivers.
Will miracles never cease! DEC has given us something in
addition to some rather poor documentation on GSX. }
const nsize = 8; maxrow = 50; maxcol = 50;
type cia = array[1..maxrow, 1..maxcol] of integer; {color index array type}
pointlist = array[1..nsize] of integer;
var j: ^integer;
i,k,a,b,c,d : integer;
points : pointlist;
st : string[255];
colors : cia;
rows, cols : integer;
{$iB:GSXWORK.INC}
{$iB:GSXFILL.INC}
begin
write('Enter workstation number > '); readln(i); writeln;
write('enter pixelop >'); readln(b); writeln;
openstation(i);
rows := 50; cols := 50;
for i := 1 to rows do
for k:= 1 to cols do colors[i,k] := (k-1) mod 16;
cellarray(addr(colors), maxcol, cols, rows, b, 0, 0, 32767,32767);
readln;
cellarray(addr(colors), 2, cols, rows, b, 1000,1000, 31767,31767);
readln;
cellarray(addr(colors), 3, cols, rows, b, 1000,1000, 31767,31767);
readln;
cellarray(addr(colors), 4, cols, rows, b, 1000,1000, 31767,31767);
readln;
clearstation;
closestation
end.